<html><head><TITLE>RAtomic</TITLE></head>
<body>
<H2><A HREF ="#DOC.DOCU" > <IMG BORDER=0 SRC=down.gif></A>  class  RAtomic  </H2><BLOCKQUOTE>
An atomic integer counter, that can be incremented and decremented safely
</BLOCKQUOTE>
<hr>

<DL>
<DL>
<DT><h3>Public Methods</h3><DD><DT><A HREF="#DOC.1.1"> <IMG BORDER=0 SRC=icon1.gif></A>  <B>RAtomic</B>(si32 initial = 0) </B>
 <DD><I>Initializes the RAtomic with a given value</I>
<DT><A HREF="#DOC.1.2"> <IMG BORDER=0 SRC=icon1.gif></A> inline  si32  <B>Inc</B>(void) </B>
 <DD><I>Safely increments the counter</I>
<DT><A HREF="#DOC.1.3"> <IMG BORDER=0 SRC=icon1.gif></A> inline  si32  <B>Dec</B>(void) </B>
 <DD><I>Safely decrements the counter</I>
<DT><A HREF="#DOC.1.4"> <IMG BORDER=0 SRC=icon1.gif></A> inline  si32  <B>Value</B>(void) const  </B>
 <DD><I>Returns the current counter valuer</I>
<DT><A HREF="#DOC.1.5"> <IMG BORDER=0 SRC=icon1.gif></A> inline  <B>operator si32</B>() const  </B>
 <DD><I>Returns the current counter value</I>
</DL></DL>
<A NAME="DOC.DOCU">
<hr>
 <h2> Documentation </h2>
<BLOCKQUOTE>
An atomic integer counter, that can be incremented and decremented safely.
The purpose of an atomic integer is for synchronization of a value accessed
from several threads (BeOS) or an interruption (MacOS).

</BLOCKQUOTE>
<DL>

<A NAME="RAtomic">
<A NAME ="DOC.1.1">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B>  RAtomic(si32 initial = 0)</B></TT>
<DD>Initializes the RAtomic with a given value
<DL><DT><B>Parameters:</B><DD><B>initial</B> - 	Optional starting value.
0 is the default.<br></DL><P>
<A NAME="Inc">
<A NAME ="DOC.1.2">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> inline  si32  Inc(void)</B></TT>
<DD>Safely increments the counter.
This operation is thread-safe or interrupt-safe.

<DL><DT><B>Returns:</B><DD>The value of the counter before the increment
</DL><P>
<A NAME="Dec">
<A NAME ="DOC.1.3">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> inline  si32  Dec(void)</B></TT>
<DD>Safely decrements the counter.
This operation is thread-safe or interrupt-safe.

<DL><DT><B>Returns:</B><DD>The value of the counter before the decrement
</DL><P>
<A NAME="Value">
<A NAME ="DOC.1.4">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> inline  si32  Value(void) const </B></TT>
<DD>Returns the current counter valuer
<DL><DT><B>Returns:</B><DD>The current value
</DL><P>
<A NAME="operator si32">
<A NAME ="DOC.1.5">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> inline  operator si32() const </B></TT>
<DD>Returns the current counter value
<DL><DT><B>Returns:</B><DD>The current value
</DL><P></DL>
<hr>
 <DL><DT><B>This class has no child classes.</B></DL>
<DL></DL><P><I><A HREF="aindex.html"> alphabetic index</A></I>  <I><A HREF="HIER.html"> hierarchy of classes</A></I><P><hr>
<A HREF="http://www.zib.de/Visual/software/doc++/index.html"><IMG BORDER=0 ALIGN=RIGHT SRC=logo.gif></A>
<P Align=Center><I>this page has been generated automatically by doc++</I>
<P Align=Center><I>(c)opyright by <A HREF="http://www.zib.de/zoeckler/"> Malte  Z&ouml;ckler</A>, <A HREF="mailto:wunderling@zib.de"> Roland Wunderling </A><br>contact: <A HREF="mailto:doc++@zib.de"> doc++@zib.de</a></I>
</BODY>
